package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author shixc
 * @since 2019-01-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAJ_T")
public class GwajT extends PO<GwajT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAJENT", type = IdType.INPUT)
    private String GWAJENT;
    private String GWAJ001;
    private String GWAJ002;
    private String GWAJ003;
    private String GWAJ004;
    private String GWAJACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWAJUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWAJGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWAJMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWAJTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWAJDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWAJORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWAJORIU;


    @Override
    protected Serializable pkVal() {
        return this.GWAJENT;
    }

}
